<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php echo $this->headTitle()?>
<link rel="stylesheet" href="<?php echo  $this->baseLayout()?>/css/site.css"
	type="text/css">
<link href="<?php echo  $this->baseLayout()?>/css/mini-tab.css" media="screen"
	rel="stylesheet" type="text/css" />
<link type="text/css" href="<?php echo  $this->UiCss('ui.all.css')?>" media="screen" rel="stylesheet" />
<link type="text/css" href="<?php echo  $this->Css('fg.menu.css')?>" media="screen" rel="stylesheet" />

<?php echo $this->headLink() ?>

<?php echo  $this->headStyle() ?>
<script type="text/javascript" src="<?php echo $this->js('jquery-1.4.2.min.js')?>"></script>
<script type="text/javascript" src="<?php echo $this->js('jquery-ui-1.8.custom.min.js')?>"></script>
 <script type="text/javascript" src="<?php echo $this->js('plugins/fg.menu.js')?>"></script>
<script type="text/javascript">
var baseURL = '<?php echo $this->baseUrl ?>';

$(function(){
    // BUTTONS
    $('.fg-button').hover(
        function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
        function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
    );
        // MENUS
     // or from an external source
    $.get('<?php echo $this->baseUrl?>/menu', function(data){ // grab content from another page
        $('#flyout').menu({ content: data, flyOut: true });
    });
});

</script>
<?php echo  $this->headScript() ?>

</head>
<body class="tundra">
<div id="baseDiv" class="sfs-home">
<div id="masthead"><a class="logo" href="<?php echo $this->BaseUrl() ?>"> <img
	border="0" alt="" src="<?php echo  $this->baseLayout()?>/images/pixel.gif" /> </a>
<div id="non-logo-masthead">
<div id="school-title">
<h1><?php echo $this->School['name_short']?></h1>
<p><?php echo $this->translate('SFS')?> <?php echo $this->version ?></p>
</div>
<div id="top-user-link-wrapper">
<div id="program-title"><?php echo $this->ModuleInfo['title'] ?> - <?php echo $this->HeadTitle ?></div>
<div id="system-message"></div>
<div class="user-info"><span> <?php if ($this->user): ?> <?php echo $this->user->name ?><?php echo $this->translate('login')?>,
<a href="<?php echo $this->BaseUrl() ?>/logout"><?php echo $this->translate('logout')?></a> <?php else: ?> <a
	href="<?php echo $this->BaseUrl() ?>/login"><?php echo $this->translate('login')?></a> <?php endif ?></span></div>
<div id="semester-title"><span>
<?php echo sprintf($this->translate('%d No. %d academic year semester'),$this->Semester['year'],$this->Semester['semester'])?>
<?php echo date($this->translate('de Y-m-d (D)'))?></span></div>
</div>
</div>
</div>
<div id="top-nav" class="bar" >
<a tabindex="0" href="#"  class="ui-widget"  id="flyout">系統選單</a>
</div>
<div id="all-content"><?php echo $this->render('nav.phtml')?> <?php echo $this->layout()->content?>
</div>
<div id="footer">
<?php echo  sprintf($this->translate('perpagetime %0.2f second'),microtime(true)-STARTTIME)?></div>
</div>
</body>
</html>